package com.yyj.pojo.job;


import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Created by lzp on 2017/8/30.
 */
@Data
@NoArgsConstructor
public class ScheduleJob {

    /** 任务id */
    private String jobId;
    /** 任务名称 */
    private String jobName;
    /** 任务分组 */
    private String jobGroup;
    /** 任务状态 0禁用 1启用 2删除*/
    private String jobStatus;
    /** 任务运行时间表达式 */
    private String cronExpression;
    /** 任务描述 */
    private String desc;

    public ScheduleJob(String jobName) {
        this.jobName = jobName;
    }

    public ScheduleJob(String jobId, String jobName, String cronExpression) {
        this.jobId = jobId;
        this.jobName = jobName;
        this.cronExpression = cronExpression;
    }
}
